import com.westos.dao.UserDao;
import com.westos.domain.User;
import com.westos.service.UserService;

/**
 * @Description:
 * @Author: 大强
 * @CreateTime: 2020/1/8
 * @Company: 西部开源教育科技有限公司
 */
public class MockUserService extends UserService {
    private boolean registerUser;

    private User loginresult;

    @Override
    public boolean registerUser(User user) throws Exception {
        return true;
    }

    @Override
    public User login(User user) throws Exception {
        return new User();
    }

    public boolean isRegisterUser() {
        return registerUser;
    }

    public void setRegisterUser(boolean registerUser) {
        this.registerUser = registerUser;
    }

    public User getLoginresult() {
        return loginresult;
    }

    public void setLoginresult(User loginresult) {
        this.loginresult = loginresult;
    }

    @Override
    public UserDao getDao() {
        return super.getDao();
    }

    @Override
    public void setDao(UserDao dao) {
        super.setDao(dao);
    }
}
